Ext.define('admin.store.newsStore', {
	extend: 'Ext.data.Store',
	autoLoad: true,
	pageSize: 15,
	autoLoad: {
		start: 0,
		limit: 15
	},
	
	model: 'admin.model.NewsModel',
	
	proxy: {
		type: 'ajax',
		api: {
			read: '/Admin.php/News/read',
			update: '/Admin.php/News/update',
			create: '/Admin.php/News/create',
			destroy: '/Admin.php/News/destroy'
		},
		reader: {
			type: 'json',
			rootProperty: 'data',
			successProperty: 'success',
			totalProperty: 'totalCount'
		},
		
		writer: {
			type: 'json'
		}
	}
});